!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4239129e-615b-4053-878a-5d51d775a385",e._sentryDebugIdIdentifier="sentry-dbid-4239129e-615b-4053-878a-5d51d775a385")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4034,4651],{16584:function(e,t,r){r.d(t,{GI:function(){return u},Pq:function(){return a},YO:function(){return c},YS:function(){return d},b7:function(){return s},cs:function(){return o},kQ:function(){return i},qv:function(){return l}}),r(66740);var n=r(22319),s=(0,n.c)({defaultClassName:"_1iiqxny0 $absolute $rounded-full $bg-grayEbony/80 $flex $items-center $justify-center",variantClassNames:{size:{xs:"_1iiqxny1",sm:"_1iiqxny2"}},defaultVariants:{size:"sm"},compoundVariants:[]}),a="$relative $text-white $flex $items-center $gap-[0px] xs:$gap-[5px]",i="$z-2";(0,n.c)({defaultClassName:"_1iiqxny6 $inline-flex $rounded-[4px] $font-semibold $sprinkles-text-xs $leading-[1.75] $px-[8px]",variantClassNames:{isActive:{true:"$bg-blueOnahau $text-darkBlueBlackale",false:"$bg-surface-2 $text-surface-foreground-0"}},defaultVariants:{},compoundVariants:[]});var o="border-t-[1px] border-surface-border-0 my-1 $mx-[-25px]",l="$mb-[-2px] $mr-[20px]",c=(0,n.c)({defaultClassName:"_1iiqxny3 $transition-all",variantClassNames:{isTransparent:{true:"$text-white hover:$opacity-[0.7]",false:"text-surface-foreground-2 hover:text-surface-foreground-3"}},defaultVariants:{},compoundVariants:[]}),u="bg-surface-0 dark:bg-surface-1 $p-[25px] $pb-[5px] $w-screen xs:$w-[320px] $z-4 $max-h-[calc(100dvh-100px)] border border-surface-border-0",d="$flex $items-center $gap-[15px]"},75080:function(e,t,r){r.d(t,{G:function(){return l}});let n=["EN","JA","ZH"],s=["NL","IT","ES","DE","PT"],a=["EN","ZH","ES","JA","KO"],i=["FR","RU","PL"],o=["KR","FR","RU","JA","IT","ES","EN","DE","PT","KO"],l=(e,t,r)=>{let l=e.toUpperCase(),c=Math.abs(t)>=1e4||o.includes(l);return new Intl.NumberFormat("EN",{style:"decimal",...r,useGrouping:c}).formatToParts(t).map(e=>"minusSign"===e.type?"-":"group"===e.type?s.includes(l)?".":a.includes(l)?",":i.includes(l)?"\xa0":"":"decimal"===e.type?n.includes(l)?".":",":e.value).join("")}},54532:function(e,t,r){r.d(t,{q:function(){return c}});var n=r(97458),s=r(98821),a=r.n(s),i=r(52983);let o=e=>{let t=(0,i.useRef)(null),r=(0,i.useCallback)(t=>{t.currentTarget.src=e},[e]);return(0,i.useEffect)(()=>{var r;if(null==t?void 0:null===(r=t.current)||void 0===r?void 0:r.src){let{complete:r,naturalHeight:n}=t.current;r&&0===n&&(t.current.src=e)}},[e]),{ref:t,onError:r}},l={xs:24,sm:36,md:44,lg:64,xl:128},c=(0,i.memo)(e=>{let{image:t,size:r,customSize:s,fallback:i="https://freepik.cdnpk.net/img/avatars/01.svg"}=e,{ref:c,onError:u}=o(i),d=null!=s?s:l[null!=r?r:"lg"];return(0,n.jsx)(a(),{ref:c,className:"$block $overflow-hidden $rounded-full",src:null!=t?t:i,width:d,height:d,alt:"avatar",onError:u,unoptimized:!0})})},33523:function(e,t,r){r.d(t,{O:function(){return d}});var n=r(97458),s=r(18503),a=r(57291),i=r(40197);r(80278);let o="[animation-direction:linear] [animation-duration:1.5s] [animation-iteration-count:infinite] [animation-timing-function:ease-in-out]",l="[background-image:linear-gradient(110deg,#ececec_8%,#f5f5f5_18%,#ececec_33%)] [background-size:200%_100%] dark:[background-image:linear-gradient(110deg,#2a2a2a_8%,#333_18%,#2a2a2a_33%)]",c=(e,t)=>e?(0,i.m6)("m-0 h-[100px] w-full rounded-md",o,l,t):(0,s.m)("$m-0 $h-100 $w-full $rounded-md",o,l,t),u=e=>{let{style:t,className:r,newSkeleton:s=!1,...a}=e;return(0,n.jsx)("div",{...a,style:{...t,animationName:"_d9qd7y0"},className:c(s,r)})},d={Rect:u,Circle:e=>{let{style:t,className:r,newSkeleton:s=!1}=e;return(0,n.jsx)(u,{className:(0,a.cx)("$rounded-full",r),style:t,newSkeleton:s})}}},39597:function(e,t,r){r.d(t,{I:function(){return o}});var n=r(97458),s=r(52983),a=r(40197);let i=(0,r(57291).j)(["w-full rounded border border-form-border-0 bg-form-0 px-3 transition-colors","placeholder:text-form-field-foreground-0 text-form-foreground-1","hover:border-surface-border-1","focus:outline-none focus:border-primary-0 focus:ring-1 focus:ring-surface-border-1","disabled:opacity-50 disabled:cursor-not-allowed"],{variants:{size:{md:"h-10 text-sm",lg:"h-12 text-base"},variant:{default:"border-form-border-0 active:border-primary-0",error:"border-2 border-negative-500 dark:border-malaga-red-600"}},defaultVariants:{size:"md",variant:"default"}}),o=(0,s.forwardRef)((e,t)=>{let{variant:r,size:s,className:o,...l}=e;return(0,n.jsx)("input",{...l,ref:t,className:(0,a.m6)(i({variant:r,size:s}),o)})});o.displayName="Input"},74152:function(e,t,r){r.d(t,{_:function(){return i}});var n=r(97458),s=r(21258),a={src:"https://static.cdnpk.net/_next/static/media/crown.624ea8d2.svg",height:14,width:14,blurWidth:0,blurHeight:0};let i=e=>(0,n.jsx)(s.X,{src:a,...e})},21258:function(e,t,r){r.d(t,{X:function(){return i}});var n=r(97458),s=r(98821),a=r.n(s);let i=e=>{let{alt:t="",width:r=16,height:s=16,...i}=e;return(0,n.jsx)(a(),{width:r,height:s,unoptimized:!0,alt:t,...i})}},38995:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:[(0,n.jsx)("path",{d:"M442.139 362.501C454.18 360.479 463 350.056 463 337.846V276c0-30.327-24.673-55-55-55H6c-30.327 0-55 24.673-55 55v61.846c0 12.21 8.82 22.634 20.862 24.655C-11.254 365.335 1 379.844 1 397s-12.254 31.665-29.138 34.499C-40.18 433.521-49 443.944-49 456.154V518c0 30.327 24.673 55 55 55h402c30.327 0 55-24.673 55-55v-61.846c0-12.21-8.82-22.634-20.861-24.655C425.255 428.665 413 414.156 413 397s12.255-31.665 29.139-34.499M413 319.492c-29.912 13.415-50 43.297-50 77.508s20.088 64.093 50 77.508V518c0 2.757-2.243 5-5 5H151v-25c0-13.808-11.193-25-25-25s-25 11.192-25 25v25H6c-2.757 0-5-2.243-5-5v-43.492C30.913 461.093 51 431.211 51 397s-20.087-64.093-50-77.508V276c0-2.757 2.243-5 5-5h95v25c0 13.808 11.193 25 25 25s25-11.192 25-25v-25h257c2.757 0 5 2.243 5 5z"}),(0,n.jsx)("path",{d:"M126 357c-13.807 0-25 11.192-25 25v30c0 13.808 11.193 25 25 25s25-11.192 25-25v-30c0-13.808-11.193-25-25-25"})]})},71110:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:[(0,n.jsx)("path",{d:"M388 191H26c-35.841 0-65 29.159-65 65v282c0 35.841 29.159 65 65 65h362c35.841 0 65-29.159 65-65V256c0-35.841-29.159-65-65-65M26 241h362c8.271 0 15 6.729 15 15v35H11v-35c0-8.271 6.729-15 15-15m362 312H26c-8.271 0-15-6.729-15-15V341h392v197c0 8.271-6.729 15-15 15"}),(0,n.jsx)("path",{d:"M81 453c-16.542 0-30 13.458-30 30s13.458 30 30 30 30-13.458 30-30-13.458-30-30-30m60 0c-16.542 0-30 13.458-30 30s13.458 30 30 30 30-13.458 30-30-13.458-30-30-30"})]})},79029:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M15.403 6.334A5.836 5.836 0 0 0 9.575.506c-1.285 0-2.503.41-3.522 1.184a5.9 5.9 0 0 0-1.947 2.628 5.84 5.84 0 0 0-3.51 5.347 5.836 5.836 0 0 0 5.829 5.828 5.835 5.835 0 0 0 5.469-3.812 5.84 5.84 0 0 0 3.509-5.347m-8.978 7.597a4.27 4.27 0 0 1-4.266-4.266 4.275 4.275 0 0 1 3.828-4.244H6a1 1 0 0 1 .087-.006q.015 0 .028-.003l.075-.006q.016 0 .032-.003.038-.001.072-.003h.244a4.27 4.27 0 0 1 4.156 4.265q.001.071-.004.138v.034q0 .056-.006.116 0 .015-.003.025-.004.066-.012.134c0 .01-.004.022-.004.031l-.012.107c-.003.012-.003.028-.006.04l-.02.122a.2.2 0 0 0-.005.04l-.02.091q-.005.031-.012.063-.007.034-.015.062-.018.069-.035.138a4.285 4.285 0 0 1-4.116 3.125Zm5.828-4.275v-.144l-.003-.066q-.002-.043-.003-.08l-.003-.07q-.004-.039-.007-.078l-.006-.072-.006-.075-.01-.075-.009-.071-.01-.079-.009-.068c-.003-.028-.01-.053-.012-.082l-.01-.062q-.008-.043-.015-.081-.004-.03-.013-.06l-.018-.084q-.007-.029-.013-.056l-.022-.088c-.003-.019-.01-.034-.012-.053q-.011-.046-.025-.09c-.003-.016-.01-.032-.013-.05l-.028-.091c-.003-.016-.01-.031-.012-.047q-.014-.047-.032-.094c-.003-.012-.01-.028-.012-.04q-.018-.05-.035-.097-.006-.019-.012-.038l-.038-.1q-.006-.017-.012-.034-.02-.05-.04-.1L11.8 7.4q-.022-.054-.044-.1c-.003-.01-.01-.02-.012-.029l-.047-.103a.1.1 0 0 0-.013-.025q-.024-.05-.053-.103-.004-.01-.012-.022c-.02-.034-.038-.072-.057-.106l-.01-.019q-.029-.055-.058-.106l-.01-.016q-.034-.054-.062-.109a1 1 0 0 0-.075-.119q-.006-.004-.007-.012a1 1 0 0 0-.071-.106l-.007-.01-.075-.11-.006-.005q-.039-.055-.078-.11-.002-.003-.003-.006-.04-.056-.081-.106l-.004-.003q-.041-.053-.087-.107l-.003-.003a5.9 5.9 0 0 0-1.597-1.35q-.06-.034-.122-.069l-.122-.065h-.003q-.06-.031-.122-.06-.002 0-.003-.003l-.122-.056q-.005-.002-.006-.003c-.04-.019-.078-.034-.119-.053q-.004 0-.01-.006-.06-.026-.121-.05-.004-.002-.013-.004a2 2 0 0 0-.115-.043q-.008-.003-.016-.007-.055-.02-.115-.04a.04.04 0 0 0-.02-.006l-.115-.038q-.008-.003-.022-.006-.056-.018-.112-.035-.013-.005-.025-.006-.057-.016-.113-.031-.014-.005-.028-.006a1 1 0 0 0-.11-.025.1.1 0 0 0-.03-.007q-.057-.012-.11-.025-.016-.003-.031-.006c-.034-.006-.072-.012-.106-.022q-.02-.003-.035-.006l-.103-.019c-.012-.003-.028-.003-.04-.006l-.1-.016q-.025-.003-.044-.006c-.035-.003-.069-.01-.103-.012a.2.2 0 0 1-.044-.007l-.1-.009q-.024-.002-.047-.003l-.1-.006-.05-.003c-.031-.004-.066-.004-.097-.004q-.026 0-.053-.003l-.15-.003q-.077 0-.153.003-.029 0-.056.003c-.032 0-.063.004-.094.004h-.006a4.24 4.24 0 0 1 3.463-1.775A4.27 4.27 0 0 1 13.85 6.34a4.31 4.31 0 0 1-1.597 3.316"})})},19213:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:[(0,n.jsx)("path",{d:"M438 403c-13.808 0-25 11.193-25 25v134c0 19.299-15.701 35-35 35H36c-19.299 0-35-15.701-35-35V428c0-13.807-11.193-25-25-25s-25 11.193-25 25v134c0 46.869 38.131 85 85 85h342c46.869 0 85-38.131 85-85V428c0-13.807-11.192-25-25-25"}),(0,n.jsx)("path",{d:"M189.322 530.678a25.004 25.004 0 0 0 35.356 0l84.853-84.853c9.763-9.763 9.763-25.592 0-35.355s-25.592-9.763-35.355 0L232 452.645V172c0-13.807-11.193-25-25-25s-25 11.193-25 25v280.645l-42.175-42.175c-9.764-9.763-25.592-9.763-35.355 0s-9.763 25.592 0 35.355z"})]})},81550:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M388.02 215.98C339.667 167.629 275.38 141 207 141S74.333 167.629 25.98 215.98C-22.371 264.332-49 328.62-49 397s26.629 132.668 74.98 181.02C74.333 626.371 138.62 653 207 653s132.667-26.629 181.02-74.98C436.371 529.668 463 465.38 463 397s-26.629-132.668-74.98-181.02M206.999 594.556c-28.257-26.276-50.21-57.813-64.859-92.556h129.72c-14.65 34.744-36.603 66.281-64.861 92.556M126.613 452C122.92 434.105 121 415.699 121 397s1.921-37.105 5.613-55h160.774c3.693 17.895 5.613 36.301 5.613 55s-1.921 37.105-5.613 55zM1 397c0-19.042 2.609-37.484 7.467-55h67.236C72.597 359.985 71 378.371 71 397s1.597 37.015 4.703 55H8.467A205.5 205.5 0 0 1 1 397m206-197.557c28.257 26.276 50.211 57.813 64.859 92.557H142.141c14.648-34.743 36.602-66.281 64.859-92.557M338.297 342h67.236c4.858 17.516 7.467 35.958 7.467 55s-2.609 37.484-7.467 55h-67.235c3.106-17.985 4.703-36.371 4.703-55s-1.598-37.015-4.704-55m45.866-50h-58.741a317.4 317.4 0 0 0-47.355-88.362C322.719 220.102 360.14 251.62 384.163 292m-248.229-88.362A317.3 317.3 0 0 0 88.579 292H29.837c24.023-40.38 61.444-71.898 106.097-88.362M29.837 502h58.742a317.3 317.3 0 0 0 47.355 88.362C91.281 573.898 53.86 542.38 29.837 502m248.23 88.362A317.3 317.3 0 0 0 325.422 502h58.741c-24.023 40.379-61.443 71.898-106.096 88.362"})})},86045:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:[(0,n.jsx)("path",{d:"M207 653c-68.38 0-132.668-26.629-181.02-74.98C-22.371 529.667-49 465.38-49 397s26.629-132.667 74.98-181.02C74.332 167.629 138.62 141 207 141s132.668 26.629 181.02 74.98C436.371 264.333 463 328.62 463 397s-26.629 132.667-74.98 181.02C339.668 626.371 275.38 653 207 653m0-462C93.411 191 1 283.411 1 397s92.411 206 206 206 206-92.411 206-206-92.411-206-206-206"}),(0,n.jsx)("path",{d:"M207 473c-13.807 0-25-11.193-25-25v-32c0-13.807 11.193-25 25-25 27.57 0 50-22.43 50-50s-22.43-50-50-50-50 22.43-50 50c0 13.807-11.193 25-25 25s-25-11.193-25-25c0-55.14 44.859-100 100-100s100 44.86 100 100c0 46.511-31.917 85.708-75 96.836V448c0 13.807-11.193 25-25 25m0 80c-16.542 0-30-13.458-30-30s13.458-30 30-30 30 13.458 30 30-13.458 30-30 30"})]})},74955:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M460.072 547.76 413 459.265V243.5c0-35.841-29.159-65-65-65H66c-35.841 0-65 29.159-65 65v215.765l-47.072 88.495A25 25 0 0 0-49 559.5v31c0 13.808 11.193 25 25 25h462c13.807 0 25-11.192 25-25v-31c0-4.094-1.005-8.126-2.928-11.74M257 540.5H157c-13.807 0-25-11.192-25-25s11.193-25 25-25h100c13.807 0 25 11.192 25 25s-11.193 25-25 25m106-100H51v-197c0-8.271 6.729-15 15-15h282c8.271 0 15 6.729 15 15z"})})},69856:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M13.965 23.016a10.94 10.94 0 0 1-7.787-3.227A10.95 10.95 0 0 1 2.953 12c0-2.942 1.146-5.708 3.225-7.79A10.94 10.94 0 0 1 13.965.985c2.405 0 4.693.77 6.617 2.224a1.172 1.172 0 0 1-.58 2.1A6.715 6.715 0 0 0 14.016 12a6.715 6.715 0 0 0 5.986 6.692c.477.052.875.39 1.003.853a1.17 1.17 0 0 1-.423 1.247 10.9 10.9 0 0 1-6.617 2.224m0-19.688c-4.78 0-8.668 3.89-8.668 8.672s3.889 8.672 8.668 8.672a8.6 8.6 0 0 0 2.857-.485 9.1 9.1 0 0 1-2.817-2.108A9.06 9.06 0 0 1 11.672 12c0-2.251.829-4.41 2.333-6.079a9.1 9.1 0 0 1 2.817-2.108 8.6 8.6 0 0 0-2.857-.485"})})},34224:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M262.145 397 98.822 560.323c-9.763 9.763-9.763 25.592 0 35.355s25.592 9.763 35.355 0l181-181c4.882-4.881 7.323-11.279 7.323-17.677s-2.441-12.796-7.322-17.678l-181-181c-9.764-9.763-25.592-9.763-35.355 0s-9.763 25.592 0 35.355z"})})},72937:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M256 420.063c13.844 0 25.063 11.239 25.063 25.083v41.792C281.057 500.777 269.841 512 256 512c-13.839-.002-25.057-11.224-25.062-25.062v-41.792c0-13.843 11.22-25.081 25.062-25.083m-151.458-48.042c9.789-9.788 25.648-9.788 35.437 0s9.788 25.648 0 35.437l-29.541 29.563c-9.79 9.787-25.67 9.788-35.459 0-9.787-9.789-9.786-25.669 0-35.458zm267.479 0c9.789-9.789 25.648-9.788 35.437 0l29.563 29.542c9.787 9.789 9.788 25.669 0 35.458s-25.669 9.787-35.458 0l-29.542-29.563c-9.788-25.669-9.788-25.669 0-35.437M256 128c70.692 0 128 57.308 128 128s-57.308 128-128 128-128-57.308-128-128 57.308-128 128-128m0 50.125c-43.005 0-77.875 34.87-77.875 77.875s34.87 77.875 77.875 77.875 77.875-34.87 77.875-77.875-34.87-77.875-77.875-77.875M66.854 230.938c13.844 0 25.063 11.218 25.063 25.062-.001 13.843-11.219 25.063-25.063 25.063H25.063C11.224 281.057.001 269.84 0 256c0-13.841 11.223-25.057 25.063-25.062zm420.084 0C500.78 230.94 512 242.157 512 256c-.001 13.842-11.22 25.06-25.062 25.063h-41.792c-13.844 0-25.062-11.22-25.063-25.063 0-13.844 11.219-25.062 25.063-25.062zM74.979 74.979c9.789-9.789 25.669-9.788 35.459 0l29.541 29.563c9.787 9.789 9.789 25.649 0 35.437s-25.648 9.787-35.437 0l-29.563-29.541c-9.788-9.789-9.788-25.669 0-35.459m326.584 0c9.789-9.79 25.669-9.79 35.458 0 9.787 9.789 9.788 25.669 0 35.459l-29.563 29.541c-9.789 9.784-25.649 9.786-35.437 0-9.789-9.789-9.789-25.669 0-35.458zM256 0c13.843 0 25.06 11.221 25.063 25.063v41.791c0 13.844-11.219 25.063-25.063 25.063-13.842-.002-25.062-11.22-25.062-25.063V25.063C230.94 11.222 242.159.002 256 0"})})},11748:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M423 638H-9c-13.807 0-25-11.193-25-25 0-53.438 17.131-104.058 49.542-146.388 22.2-28.994 50.961-52.656 83.376-69.006C75.53 371.377 62 337.07 62 301c0-79.953 65.047-145 145-145s145 65.047 145 145c0 36.07-13.53 70.377-36.918 96.606 32.416 16.349 61.177 40.012 83.376 69.005C430.869 508.942 448 559.562 448 613c0 13.807-11.193 25-25 25M17.657 588h378.687c-9.908-74.383-63.38-137.724-136.792-158.682a25 25 0 0 1-5.533-45.75C283.615 366.669 302 335.03 302 301c0-52.383-42.617-95-95-95s-95 42.617-95 95c0 34.03 18.386 65.668 47.981 82.568a25 25 0 0 1 12.423 24.712 25 25 0 0 1-17.956 21.038C81.037 450.276 27.564 513.617 17.657 588"})})},95678:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M407.2 255.1c17.7-21.4 27.8-48.1 27.8-75.9C435 112.3 380.7 58 314 58c-43.2 0-81.2 22.4-102.9 56.1-16.1-10.8-35.3-16.8-54.9-16.8-54.3 0-98.6 43.9-98.6 97.9 0 20.2 6.5 39.6 18.1 55.9-16.6 10.1-31.5 23.2-43.4 38.7C11.2 317.2 0 350.1 0 384.7c0 13.8 11.2 25 25 25h92c-.6 6.4-1 12.8-1 19.3 0 13.8 11.2 25 25 25h346c13.8 0 25-11.2 25-25 0-73.1-41.5-139.7-104.8-173.9M53 359.7c9-36.4 37-66.5 74.3-77.1 9.7-2.8 16.7-11.1 18-21 1.2-10-3.7-19.7-12.4-24.7-15.6-8.9-25.2-24.8-25.2-41.6 0-26.4 21.8-47.9 48.6-47.9 14 0 27.5 6.2 36.8 16.8-.6 4.9-.9 10-.9 15 0 27.7 10.4 54.6 28.5 76.1-42.3 23-74.8 60.4-91.7 104.5H53zM168.2 404c9.7-55 50.9-101.4 106.7-117.3 9.7-2.8 16.7-11.1 18-21s-3.7-19.7-12.4-24.7c-23.3-13.3-38.4-37.6-38.4-61.8 0-18.9 7.5-36.7 21.2-50.2s31.7-20.9 50.8-20.9c39.1 0 71 31.9 71 71.1 0 25-14.3 48.6-37.4 61.8-8.7 5-13.6 14.7-12.4 24.7s8.3 18.3 18 21c55.8 15.9 97 62.4 106.7 117.3z"})})},65534:function(e,t,r){r.d(t,{o:function(){return a}});var n=r(7616);let s=(0,r(24399).cn)(!1),a=()=>{let[e,t]=(0,n.KO)(s);return{isOpenAddonsModal:e,showAddonsModal:()=>t(!0),hideAddonsModal:()=>t(!1)}}},79395:function(e,t,r){r.d(t,{a:function(){return i}});var n=r(15465),s=r(52983),a=r(65534);let i=e=>{let{showAddonsModal:t}=(0,a.o)(),[,r]=(0,n.n)({location:e,action:"get_credits"});return(0,s.useCallback)(()=>{r(),t()},[t,r])}},84490:function(e,t,r){r.d(t,{x:function(){return i}});var n=r(24399),s=r(7616);let a=(0,n.cn)(!1),i=()=>{let[e,t]=(0,s.KO)(a);return{isOpenExpressCheckoutModal:e,showExpressCheckout:()=>t(!0),hideExpressCheckout:()=>t(!1)}}},65:function(e,t,r){r.d(t,{Y:function(){return n}});let n=(0,r(52983).createContext)({})},79393:function(e,t,r){r.d(t,{s:function(){return i}});var n=r(97458),s=r(52983),a=r(65);let i=e=>{let{children:t,mode:r="default",origin:i="freepik_web",href:o="/",as:l,logoutUrl:c}=e,u=(0,s.useMemo)(()=>({mode:r,origin:i,href:o,as:l,logoutUrl:c}),[r,i,o,l,c]);return(0,n.jsx)(a.Y.Provider,{value:u,children:t})}},15718:function(e,t,r){r.d(t,{s$:function(){return n.s},Rz:function(){return a},hW:function(){return s.h},Hd:function(){return l},Uu:function(){return c.U}});var n=r(79393),s=r(67214);let a=()=>{let{mode:e}=(0,s.h)();return"withoutLinks"===e};var i=r(52983),o=r(65);let l=()=>{let e=(0,i.useContext)(o.Y);if(!e)throw Error("useTopBarOrigin must be used within a TopBarProvider");return e.origin};var c=r(88765)},67214:function(e,t,r){r.d(t,{h:function(){return a}});var n=r(52983),s=r(65);let a=()=>(0,n.useContext)(s.Y)},88765:function(e,t,r){r.d(t,{U:function(){return s}});var n=r(67214);let s=()=>{let{mode:e}=(0,n.h)();return"transparent"===e}},28727:function(e,t,r){r.d(t,{b:function(){return c}});var n=r(97458),s=r(59445),a=r(770),i=r(74152),o=r(57291),l=r(16584);let c=e=>{let{size:t}=e,r=(0,s.HI)();if(!(null==r?void 0:r.profile.hasCrown))return null;let c=(0,o.j)("$w-10 $h-10",{variants:{size:{sm:"$w-10 $h-10",xs:"$w-[8px] $h-[8px]"}},defaultVariants:{size:"sm"}});return(0,n.jsx)("div",{className:(0,l.b7)({size:t}),"data-cy":"avatar-premium",children:(0,n.jsx)(a.J,{as:i._,className:c({size:t})})})}},33200:function(e,t,r){r.d(t,{I:function(){return eV}});var n=r(97458),s=r(88530),a=r(79235),i=r(54999),o=r(34529),l=r(52983),c=r(57765),u=r(23663),d=r(72118),f=r(35153);let m=()=>{d.Z.remove(f.Z),d.Z.remove(f.O)};var h=r(24544),x=r(83222),v=r(28380),p=r(6476),g=r(21910),w=r(50281);let b=e=>{let t=(0,w.A)(),r=(0,o.oC)(p.Zn);return(0,l.useCallback)(async()=>{t(e),r(),v.f.remove(),c.D.remove(),x.Z.remove(),h.s.remove(),g.i.remove(),m(),await (0,u.K)(),window.location.href="/oauth-logout"},[t,r,e,u.K])};var j=r(87420),y=r(19974),C=r(18503),N=r(7616),k=r(53344),M=r.n(k),I=r(54606),A=r(72538),$=r(15718),z=r(3766),E=r(82668),_=r(59445),S=r(35158),q=r(8147),Z=r(81157),H=r(57291),D=r(10893),O=r(79395),T=r(33432),R=r(770),P=r(95678),F=r(51780),L=r(84490),V=r(16584);let U=e=>{var t,r,s;let{children:a}=e,{setExpressCheckoutModal:i}=(0,T.U)(),{showExpressCheckout:o}=(0,L.x)(),{query:l}=(0,F.useRouter)(),c=Array.isArray(l.origin)?l.origin[0]:null!==(r=l.origin)&&void 0!==r?r:"freepik_web_team_plan",u=(0,_.HI)(),{data:d}=(0,E.D)(),f=null!==(s=null==d?void 0:null===(t=d.permissions)||void 0===t?void 0:t.canManageTeam)&&void 0!==s&&s,m=null==u?void 0:u.permissions.canCreateTeam,h=null==u?void 0:u.permissions.canAccessToCheckout;return m||h||f&&!(null==u?void 0:u.profile.isEnterprise)?(0,n.jsxs)(Z.f5,{"data-cy":"addMember",block:!0,color:"gray",onClick:()=>{m?window.location.href="".concat(z.zy).concat("?create-team=true").concat(z.Iy):h?(i({productCode:"FR-PREMIUMT",coupon:"",seats:2,frequency:"monthly",origin:c,isExpressCheckout:!0,isTeam:!0,referrer:encodeURIComponent(window.location.href)}),o()):f&&(window.location.href="/user/team/".concat(null==d?void 0:d.teamId).concat("?invite-members=true").concat(z.Iy))},size:"xs",children:[(0,n.jsx)(R.J,{as:P.Z,className:V.qv,fill:"grayBali",size:"base"}),a]}):null},B=e=>{let{wallet:t,walletStatus:r,teamInfo:s}=e,{permissions:a,profile:i}=t,o=(0,O.a)("userprofile_dropdown"),l=(0,S.j)();return(0,n.jsx)("div",{className:(0,H.cx)("mb-2",(i.isTeams||i.isEnterprise)&&"mt-3"),children:(0,n.jsx)(G,{permissions:a,walletStatus:r,subscriptionUrl:l,onShowAddonsModal:o,teamInfo:s,profile:i})})},G=e=>{let{profile:t,permissions:r,walletStatus:s,subscriptionUrl:a,onShowAddonsModal:i,teamInfo:o}=e,{t:l}=(0,D.$G)("topNav"),c=s.isFrozen,u=s.isUnpaid,d=s.isCancelled,f=t.isTeams,{canUpgradeFrequency:m,canAccessToAddons:h,canAccessToCheckout:x,canUpgradeProduct:v}=r,p=f&&(null==o?void 0:o.role)==="owner";if(c||u||d){let e=l(c?"resumePlan":"checkDetails");return(0,n.jsx)(Z.gg,{size:"xs","data-cy":"checkDetails",as:"a",block:!0,href:"".concat(z.zy).concat(z.Iy),children:e})}return p&&(m||v)||!f&&(m||v)?(0,n.jsx)(Z.gg,{"data-cy":"upgrade",size:"xs",block:!0,as:"a",href:"".concat(a).concat(z.Iy),children:l("upgrade")}):f||!h||m?!f&&x?(0,n.jsx)(Z.gg,{"data-cy":"getAPlan",size:"xs",as:"a",block:!0,href:"".concat(z.WR).concat(z.Iy),children:l("getAPlan")}):null:(0,n.jsx)(Z.gg,{"data-cy":"buyMore",size:"xs",block:!0,onClick:i,children:l("buyMore")})},J=e=>{let{walletStatus:t}=e,{t:r}=(0,D.$G)("topNav");if(!(t.isFrozen||t.isUnpaid))return(0,n.jsx)(U,{children:r("inviteMembers")})},K=()=>{let e=(0,q.H)(),t=(0,_.RI)(),{data:r}=(0,E.D)();return e?(0,n.jsxs)("div",{className:"mb-5",children:[(0,n.jsx)(B,{wallet:e,walletStatus:t,teamInfo:r}),(0,n.jsx)(J,{walletStatus:t})]}):null};var Y=r(75080);let W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EN",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!r&&e>-1e5&&e<1e5?(0,Y.G)(t,e):(0,Y.G)(t,e,{maximumFractionDigits:1,notation:"compact",compactDisplay:"short"})};var Q=r(18444),X=r(79029),ee=r(34224);let et=e=>{let{progress:t}=e;return(0,n.jsx)("div",{className:" $bg-surface-3 $mb-[15px] $rounded-lg $h-[8px]",children:(0,n.jsx)("div",{style:{width:t+"%"},className:" $bg-blueFreepik $rounded-lg $h-[8px] $transition-all $duration-300",children:"\xa0"})})},er=(e,t)=>t<=0?0:Math.min(100,e/t*100),en=()=>{let{t:e}=(0,D.$G)("topNav"),t=(0,_.HI)(),r=(0,_.RI)(),s=(0,Q.w)(),{isActive:a}=r;if(!t||!a)return null;let{totalCreditsOfPlan:i,creditsSpend:o,profile:l}=t,{isEnterprise:c}=l,u=Math.max(0,null!=o?o:0);if(s&&i<=0)return null;let d=er(u,i),f=c?"a":"div",m=c?{href:"".concat(z.j1).concat(z.Iy)}:{};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex w-full flex-col text-xs",children:[(0,n.jsxs)(f,{...m,className:(0,H.cx)("flex flex-row justify-between text-surface-foreground-0 text-xs items-center py-2.5 transition-all duration-50",c&&"cursor-pointer"),children:[(0,n.jsxs)("div",{className:"flex items-center text-left font-semibold no-underline",children:[(0,n.jsx)(R.J,{as:X.Z,size:"base",className:"mb-[-2px] mr-5"}),e("userMenu.credits")]}),(0,n.jsx)("div",{className:"flex flex-row items-center gap-3",children:c&&(0,n.jsx)("div",{className:"flex items-center rounded p-2 transition-all duration-100 hover:bg-surface-2",children:(0,n.jsx)(R.J,{className:"size-3.5",as:ee.Z,size:"base"})})})]}),a&&(0,n.jsxs)("div",{"data-cy":"credits",className:"mb-1 flex flex-row justify-between text-2xs text-surface-foreground-0",children:[(0,n.jsxs)("p",{children:[e("userMenu.spent"),(0,n.jsx)("span",{className:"ml-1 text-xs",children:W(u)})]}),(0,n.jsxs)("p",{children:[e("userMenu.limit"),(0,n.jsx)("span",{className:"ml-1 text-xs",children:W(i)})]})]}),(0,n.jsx)(et,{progress:d})]}),(0,n.jsx)("div",{className:V.cs})]})};var es=r(54532),ea=r(95943),ei=r(28727);let eo=e=>"xs"===e||"sm"===e?e:"sm",el=e=>{let{avatar:t,size:r="xs",showIconFold:s=!1}=e,a=(0,$.Uu)();return(0,n.jsxs)("div",{className:V.Pq,"data-cy":"user-avatar",children:[(0,n.jsx)(ei.b,{size:eo(r)}),(0,n.jsx)(es.q,{image:t,size:r}),!s&&(0,n.jsx)(R.J,{as:ea.Z,className:V.YO({isTransparent:a})})]})},ec=e=>{let{radius:t,percentage:r}=e,s=2*Math.PI*t;return(0,n.jsxs)("svg",{"data-cy":"progress-ring",className:"absolute left-0 top-0 size-full",viewBox:"0 0 40 40",children:[(0,n.jsx)("circle",{cx:"20",cy:"20",r:t,className:"stroke-current text-[#d1d5db] dark:text-[#336AEA4D]",strokeWidth:"3",fill:"transparent"}),(0,n.jsx)("circle",{cx:"20",cy:"20",r:t,stroke:r>75?"#EB644C":r>50?"#F4980A":"#648EEF",strokeWidth:"3",fill:"transparent",strokeDasharray:s,strokeDashoffset:s-r/100*s,strokeLinecap:"round",transform:"rotate(-90 20 20)"})]})},eu=e=>{let{avatar:t,size:r="md"}=e,s=(0,_.HI)(),a=(0,Q.w)(),i=(0,_.RI)().isActive,o=s&&!a&&s.totalCreditsOfPlan>0&&i,l=s?Math.min(100,Math.max(0,s.creditsSpend/s.totalCreditsOfPlan*100)):0;return(0,n.jsx)("div",{"data-cy":"user-avatar",className:"flex items-center gap-2",children:(0,n.jsxs)("div",{className:"relative size-[46px] shrink-0",children:[o&&(0,n.jsx)(ec,{radius:14,percentage:l}),(0,n.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,n.jsx)(es.q,{image:t,size:r})})]})})};var ed=r(33523);let ef=()=>{let e=(0,_.HI)(),{error:t,data:r,isLoading:s}=(0,E.D)();return(null==e?void 0:e.profile.isTeams)&&!t?s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ed.O.Rect,{className:"mb-1 h-5 w-full"}),(0,n.jsx)(ed.O.Rect,{className:"mb-5 h-5 w-full"})]}):r?(0,n.jsx)(em,{...r,isEnterprise:e.profile.isEnterprise},r.teamId):null:void 0},em=e=>{let{teamId:t,teamTitle:r,role:s,isEnterprise:a,permissions:i}=e,o=a?"/user/enterprise".concat(z.Iy):"/user/team/".concat(t).concat(z.Iy),l=!!(null==i?void 0:i.canManageTeam),c=l?"a":"div";return(0,n.jsxs)(c,{...l&&{href:o},className:(0,H.cx)("w-full flex justify-between items-center text-inherit no-underline visited:text-inherit",l&&"mb-4 cursor-pointer"),children:[(0,n.jsxs)("div",{className:"flex items-center gap-5 text-surface-foreground-0",children:[(0,n.jsx)(R.J,{as:P.Z,size:"base"}),(0,n.jsx)(eh,{teamTitle:r,role:s})]}),l&&(0,n.jsx)("div",{className:"flex items-center rounded p-2 text-surface-foreground-0 transition-all duration-100 hover:bg-surface-2",children:(0,n.jsx)(R.J,{as:ee.Z,className:"size-3.5"})})]})},eh=e=>{let{teamTitle:t,role:r}=e,{t:s}=(0,D.$G)("topNav");return(0,n.jsxs)("div",{className:"flex flex-col text-left",children:[(0,n.jsx)("p",{className:"mb-0.5 text-xs font-semibold text-surface-foreground-0",children:t}),(0,n.jsx)("p",{className:"text-2xs text-surface-foreground-2",children:s("userMenu.".concat(r))})]})};var ex=r(65428),ev=r(77306);let ep=async e=>{try{let t=await fetch("".concat(ev.m,"/api/user/wallet/create-from-coupon"),{method:"POST",...(0,ex.S)(),headers:{"Content-Type":"application/json"},body:JSON.stringify({couponCode:e})});if(!t.ok)throw Error(JSON.stringify({status:t.status,statusText:"fetchUseAICode: Error applying coupon code. Response: ".concat(t.statusText)}));return await t.json()}catch(e){throw e&&e instanceof Error&&console.error(JSON.stringify({fatal_error:e.message})),Error("Error applying coupon code")}};var eg=r(93477);let ew=e=>{let t=(0,eg.t)(),{t:r}=(0,D.$G)("topNav"),n=(0,q.H)();return(0,l.useCallback)(async s=>{try{let a=await ep(s);if(!a)return null==e||e(r("useAICode.genericError")),!1;return t({...n,...a}),!0}catch(t){null==e||e(r("useAICode.genericError"))}},[n,e,t,r])};var eb=r(48681),ej=r(39597),ey=r(17842);let eC=e=>{let{isOpen:t,onOpenChange:r}=e,{t:s}=(0,D.$G)("topNav"),[a,i]=(0,l.useState)(""),[o,c]=(0,l.useState)(""),{openToast:u}=(0,ey.x_)(),d=ew(e=>{c(e)}),f=async()=>{let e=await d(a);i(""),e&&(r(!1),u({type:"success",message:s("useAICode.successMessage")}))};return(0,n.jsx)(eb.u,{open:t,onOpenChange:r,size:"sm",children:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-5",children:[(0,n.jsx)("p",{className:"text-center text-xl font-semibold",children:s("useAICode.title")}),(0,n.jsx)(ej.I,{className:"w-full max-w-72",type:"text",placeholder:s("useAICode.inputPlaceholder"),value:a,onChange:e=>{c(""),i(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&f()}}),o&&(0,n.jsx)("span",{className:"text-sm text-destructive-foreground-0",children:o}),(0,n.jsx)(Z.gg,{onClick:f,disabled:0===a.length,children:(0,n.jsx)("span",{children:s("useAICode.applyButton")})})]})})},eN=()=>{var e;let{t}=(0,D.$G)("plans"),r=(0,q.H)(),n=null!==(e=null==r?void 0:r.productNameFriendly)&&void 0!==e?e:"";return t(n,{defaultValue:n})},ek=(0,H.j)("inline-flex rounded-sm px-2 text-xs font-semibold",{variants:{isActive:{true:"bg-piki-blue-100 text-piki-blue-900 dark:bg-[#C7D7FE1A] dark:text-piki-blue-200",false:"bg-surface-2 text-surface-foreground-0"}},defaultVariants:{isActive:!1}}),eM=()=>{let{t:e}=(0,D.$G)(["common","topNav","plans"]),t=eN(),r=(0,q.H)(),s=(0,Q.w)(),{isActive:a,isCancelled:i,isFrozen:o,isUnpaid:l}=(0,_.RI)();if(!r)return null;let c=null;return(a?c=t:i?c=e("topNav:userMenu.cancelled"):o?c=e("topNav:userMenu.frozen"):l&&(c=e("topNav:userMenu.unpaid")),c)?(0,n.jsx)("div",{className:ek({isActive:a&&!s}),children:c}):null};var eI=r(7858),eA=r(58058),e$=r.n(eA),ez=r(40563),eE=r(23113);let e_=e=>{let{label:t,options:r,dataCy:s}=e,[a,i]=(0,l.useState)(!1),o=(0,eE.a)("md")?"end":"center";return(0,n.jsxs)(y.fC,{open:a,onOpenChange:e=>i(e),children:[(0,n.jsx)(y.xz,{asChild:!0,children:(0,n.jsxs)("div",{className:"relative flex h-8 w-36 cursor-pointer items-center justify-between rounded border border-surface-border-1 bg-surface-0 pl-4 pr-2 text-xs font-semibold text-surface-foreground-0 hover:bg-surface-0 dark:bg-surface-1 hover:dark:bg-surface-1",children:[t,(0,n.jsx)("span",{className:"flex h-full items-center justify-center border-l border-surface-border-0 pl-2",children:(0,n.jsx)(R.J,{as:a?ez.Z:ea.Z})})]})}),(0,n.jsx)(y.h_,{children:(0,n.jsx)(y.VY,{align:o,sideOffset:10,onCloseAutoFocus:e=>e.preventDefault(),onOpenAutoFocus:e=>e.preventDefault(),className:"z-50 max-h-64 min-w-40 overflow-auto rounded border border-surface-border-0 bg-surface-0 px-1.5 py-1 text-xs shadow-lg scrollbar-thin scrollbar-thumb-neutral-200 dark:bg-surface-1 dark:scrollbar-thumb-neutral-800",children:(0,n.jsx)("ul",{"data-cy":s,className:"flex flex-col gap-0.5",children:r.map(e=>{let{key:t,label:r,onClick:s}=e;return(0,n.jsx)("li",{role:"button",tabIndex:0,onClick:()=>{null==s||s(),i(()=>!a)},className:"flex h-8 cursor-pointer items-center rounded px-4 text-surface-foreground-0 transition-transform duration-100 ease-out hover:bg-surface-1 hover:dark:bg-surface-2",children:r},t)})})})})]})},eS=e=>{window.location.href=e},eq=e=>{let{alternates:t}=e,{name:r}=(0,j.Vx)(),s=(0,l.useMemo)(()=>eI.lE.slice().sort((e,t)=>e.locale.localeCompare(t.locale,void 0,{sensitivity:"base"})),[]).filter(e=>!eI.Lv.includes(e.locale)).map(e=>{var r,s;let a="https://".concat(e.domain);if(!(null==t?void 0:null===(r=t.langs)||void 0===r?void 0:r.length)||t.langs.length<12)return{key:e.locale,label:e.name,onClick:()=>eS(a)};let i=t.langs.find(t=>{let{lang:r}=t;return r.substring(0,2)===e.locale.substring(0,2)});return{key:e.locale,label:(0,n.jsx)(e$(),{href:null!==(s=null==i?void 0:i.href)&&void 0!==s?s:a,children:e.name})}});return(0,n.jsx)(e_,{dataCy:"languageList",label:r,options:s})};var eZ=r(74955),eH=r(69856),eD=r(72937),eO=r(37555);let eT=()=>{let[e,t]=(0,eO.Fg)(),{t:r}=(0,D.$G)("topNav");(0,eO.Ey)();let s=(0,l.useMemo)(()=>({light:(0,n.jsx)(R.J,{as:eD.Z,className:"size-3.5"}),dark:(0,n.jsx)(R.J,{as:eH.Z,className:"size-3.5"}),system:(0,n.jsx)(R.J,{as:eZ.Z,className:"size-3.5"})}),[]),a=(0,l.useMemo)(()=>["light","dark","system"].map(e=>({key:e,label:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[s[e],(0,n.jsx)("span",{children:r("userMenu.".concat(e))})]}),onClick:()=>t(e)})),[s,r,t]),i="light"===e||"dark"===e||"system"===e?e:"system",o=(0,l.useMemo)(()=>(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsx)("span",{children:r("userMenu.".concat(i))})}),[r,i]);return(0,n.jsx)(e_,{dataCy:"themeList",label:o,options:a})},eR=(0,H.j)("mx-[-25px] flex h-11 justify-between px-[25px] text-left text-xs text-surface-foreground-0 transition-all duration-75",{variants:{isHoverActive:{true:"cursor-pointer hover:bg-surface-2 ",false:""},variant:{default:"flex-row items-center",withSelector:"flex-row items-center justify-between"}},defaultVariants:{variant:"default"}}),eP=e=>{let{icon:t,name:r,alternates:s,isHoverActive:a,isMySubscription:i,isLanguage:o,isTheme:l}=e,{t:c}=(0,D.$G)("topNav"),u=o||l;return(0,n.jsxs)("div",{className:eR({isHoverActive:!a,variant:u?"withSelector":"default"}),children:[(0,n.jsxs)("div",{className:"flex flex-row items-center gap-5",children:[(0,n.jsx)(R.J,{as:t,size:"base",className:"mb-[-2px]"}),c(r)]}),o&&(0,n.jsx)(eq,{alternates:s}),l&&(0,n.jsx)(eT,{}),i&&(0,n.jsx)(eM,{})]})},eF=e=>{let{icon:t,name:r,dataCy:s,divide:a,href:i,onLogout:o,pathGetter:c,alternates:u,isHoverActive:d,creator_name:f}=e,m=(0,Q.w)(),h=(0,q.H)(),[x,v]=(0,l.useState)(!1),p=(0,l.useCallback)(e=>{v(e)},[]),g="userMenu.logOut"===r,w="userMenu.faq"===r,b="userMenu.useAICode"===r,j="userMenu.creatorProfile"===r,y="userMenu.discord"===r;return b&&(!m||(null==h?void 0:h.profile.isFromCoupon))||j&&!f?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex w-full flex-col text-xs",onClick:()=>{if(g)return o();if(j){window.location.href="/pikaso/creator/".concat(f);return}if(y&&i){window.open(i,"_blank");return}if(b){v(e=>!e);return}if(i){let e=w?c(i):i;window.location.href="".concat(e).concat(z.Iy);return}},"data-cy":s,children:[a&&(0,n.jsx)("div",{className:"mx-[-25px] my-1 border-t border-surface-border-0"}),(0,n.jsx)(eP,{icon:t,name:r,alternates:u,isHoverActive:d,isMySubscription:"userMenu.subscription"===r,isLanguage:"userMenu.language"===r,isTheme:"userMenu.theme"===r})]}),(0,n.jsx)(eC,{isOpen:x,onOpenChange:p})]})},eL=M()(()=>Promise.all([r.e(3008),r.e(2202)]).then(r.bind(r,52202)).then(e=>e.NotificationCenter),{loadableGenerated:{webpack:()=>[52202]},ssr:!1}),eV=e=>{let{alternates:t}=e,{logoutUrl:r}=(0,$.hW)(),o=(0,a.nD)(),c=(0,j.L3)(),u=b(r),d=(0,$.Rz)(),[f,m]=(0,l.useState)(!1),h=(0,s.B)(),x=(0,i.Q)(),v=(0,N.Dv)(A.al),p=(0,N.Dv)(I.k);if("no-data"===p.status||!p.isLoggedIn)return null;let g="client"===p.status?p.fullInfo.avatar:p.ssrInfo.picture,w="client"===p.status?p.fullInfo.display_name:p.ssrInfo.name,k="client"===p.status?p.fullInfo.email:p.ssrInfo.email,M="client"===p.status?p.fullInfo.creator_name:"",E=v?z.FH:z._z,_=v?eu:el;return(0,n.jsxs)("div",{className:"flex items-center gap-[15px]",children:[h&&!d&&!v&&(0,n.jsx)(eL,{}),(0,n.jsxs)(y.fC,{open:f,onOpenChange:e=>{e&&x(),m(e)},children:[(0,n.jsx)(y.xz,{children:(0,n.jsx)(_,{size:"xs",avatar:g})}),(0,n.jsx)(y.h_,{container:null==o?void 0:o.current,children:(0,n.jsx)(y.VY,{align:"end",sideOffset:15,className:V.kQ,onOpenAutoFocus:e=>{e.preventDefault()},children:(0,n.jsxs)("div",{className:(0,C.m)("rounded-[2px]",V.GI),children:[(0,n.jsxs)("div",{className:"mb-5 flex items-center gap-5",children:[(0,n.jsx)(el,{size:"sm",avatar:g,showIconFold:!0}),(0,n.jsxs)("div",{className:"text-xs",children:[(0,n.jsx)("p",{className:"max-w-56 truncate font-bold text-surface-foreground-0",children:w}),(0,n.jsx)("p",{className:"max-w-56 truncate text-surface-foreground-2",children:k})]})]}),(0,n.jsx)(ef,{}),(0,n.jsx)(K,{}),(0,n.jsx)("div",{className:V.cs}),(0,n.jsx)(en,{}),E.map(e=>(0,n.jsx)(eF,{...e,onLogout:u,pathGetter:c,alternates:t,creator_name:M},e.name))]})})})]})]})}},3766:function(e,t,r){r.d(t,{j1:function(){return x},Iy:function(){return v},zy:function(){return m},WR:function(){return h},_z:function(){return g},FH:function(){return w}});var n=r(38995),s=r(71110),a=r(45365),i=r(19213),o=r(81550),l=r(86045),c=r(97458),u=e=>(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"language_svg__size-6",viewBox:"0 0 24 24",width:16,height:16,"aria-hidden":!0,...e,children:(0,c.jsx)("path",{fillRule:"evenodd",d:"M9 2.25a.75.75 0 0 1 .75.75v1.506a49 49 0 0 1 5.343.371.75.75 0 1 1-.186 1.489 47 47 0 0 0-1.99-.206 18.7 18.7 0 0 1-2.97 6.323q.476.576 1 1.107a.75.75 0 0 1-1.07 1.052A19 19 0 0 1 9 13.687a18.8 18.8 0 0 1-5.656 4.482.75.75 0 0 1-.688-1.333 17.3 17.3 0 0 0 5.396-4.353A18.7 18.7 0 0 1 5.89 8.598a.75.75 0 0 1 1.388-.568A17.2 17.2 0 0 0 9 11.224a17.2 17.2 0 0 0 2.391-5.165 48 48 0 0 0-8.298.307.75.75 0 0 1-.186-1.489 49 49 0 0 1 5.343-.371V3A.75.75 0 0 1 9 2.25M15.75 9a.75.75 0 0 1 .68.433l5.25 11.25a.75.75 0 1 1-1.36.634l-1.198-2.567h-6.744l-1.198 2.567a.75.75 0 0 1-1.36-.634l5.25-11.25A.75.75 0 0 1 15.75 9m-2.672 8.25h5.344l-2.672-5.726z",clipRule:"evenodd"})}),d=e=>(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:[(0,c.jsx)("path",{d:"M207 372c-13.807 0-25-11.193-25-25V166c0-13.807 11.193-25 25-25s25 11.193 25 25v181c0 13.807-11.193 25-25 25"}),(0,c.jsx)("path",{d:"M370.342 258.658c-27.847-27.847-61.558-47.693-98.342-58.419v52.84C339.785 279.251 388 345.096 388 422c0 99.804-81.196 181-181 181S26 521.804 26 422c0-76.904 48.215-142.749 116-168.921v-52.84c-36.784 10.726-70.494 30.572-98.342 58.419C.028 302.288-24 360.298-24 422S.028 541.712 43.658 585.342 145.298 653 207 653s119.712-24.028 163.342-67.658S438 483.702 438 422s-24.028-119.712-67.658-163.342"})]}),f=r(11748);let m="/user/my-subscriptions",h="/pricing",x="/user/credits",v="#from-element=dropdown_menu",p="/user/me",g=[{href:m,icon:s.Z,name:"userMenu.subscription",dataCy:"popover-user-my-subscription"},{href:p,icon:f.Z,name:"userMenu.account",dataCy:"popover-account"},{href:"/user/downloads",icon:i.Z,name:"userMenu.downloads",dataCy:"popover-download"},{icon:o.Z,name:"userMenu.creatorProfile",dataCy:"creatorProfile"},{href:"https://discord.gg/a9etNXNmYY",icon:a.Z,name:"userMenu.discord",dataCy:"joinDiscord"},{icon:u,name:"userMenu.language",dataCy:"language",isHoverActive:!0},{icon:n.Z,name:"userMenu.useAICode",dataCy:"use-ai-code"},{href:"https://support.freepik.com/s/?language=en_US",icon:l.Z,name:"userMenu.helpCenter",dataCy:"helpCenter"},{icon:d,name:"userMenu.logOut",divide:!0,dataCy:"logout-button"}],w=[{href:m,icon:s.Z,name:"userMenu.subscription",dataCy:"popover-user-my-subscription"},{href:p,icon:f.Z,name:"userMenu.account",dataCy:"popover-account"},{icon:o.Z,name:"userMenu.creatorProfile",dataCy:"creatorProfile"},{icon:u,name:"userMenu.language",dataCy:"language",isHoverActive:!0},{icon:e=>(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":!0,...e,children:(0,c.jsx)("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0m0 1.5a6.5 6.5 0 0 0 0 13z"})}),name:"userMenu.theme",dataCy:"theme",isHoverActive:!0},{icon:n.Z,name:"userMenu.useAICode",dataCy:"use-ai-code"},{href:"https://support.freepik.com/s/?language=en_US",icon:l.Z,name:"userMenu.helpCenter",dataCy:"helpCenter"},{icon:d,name:"userMenu.logOut",divide:!0,dataCy:"logout-button"}]},54606:function(e,t,r){r.d(t,{k:function(){return i}});var n=r(6476),s=r(24399),a=r(9133);let i=(0,s.cn)(e=>{let t=e(a.E),r=e(n.Zn);return e(n.nF)?"id"in r?{status:"client",isLoggedIn:!0,fullInfo:r}:{status:"client",isLoggedIn:!1}:t.weKnowInServer?t.isLogged?{status:"ssr",isLoggedIn:!0,ssrInfo:t.info}:{status:"ssr",isLoggedIn:!1}:{status:"no-data"}})},37555:function(e,t,r){r.d(t,{Ey:function(){return u},Fg:function(){return l},Gv:function(){return c}});var n=r(91394),s=r(17573),a=r(52983);let i=r(1850).z.enum(["light","dark","system"]),o="fp:theme",l=()=>{let e=(0,a.useSyncExternalStore)(f,d,()=>"ssr"),t=(0,a.useRef)(e);(0,a.useEffect)(()=>{t.current=e},[e]);let r=(0,n.d)(),i=(0,a.useMemo)(()=>new s.qg({baseUrl:"/api/user/preferences",timeout:5e3}),[]);return[e,(0,a.useCallback)(e=>{localStorage.setItem(o,e),r&&i.setTheme(e),window.dispatchEvent(new Event("storage"))},[i,r])]},c=()=>{var e;let[t]=l();return"ssr"!==t&&("dark"===t||"light"!==t&&(null===(e=window)||void 0===e?void 0:e.matchMedia("(prefers-color-scheme: dark)").matches))},u=()=>{let[e]=l(),t=c();(0,a.useEffect)(()=>{"ssr"!==e&&(t?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))},[t,e])},d=()=>{try{let e=localStorage.getItem(o),t=i.safeParse(e);if(!t.success)return localStorage.removeItem(o),"system";return t.data}catch(e){return console.error("Error accessing localStorage:",e),"system"}},f=e=>(window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)})},33432:function(e,t,r){r.d(t,{U:function(){return o}});var n=r(24399),s=r(7616),a=r(52983);let i=(0,n.cn)({isExpressCheckout:!1,origin:"",frequency:"",coupon:"",productCode:"FR-PREMIUMT",seats:1,referrer:"",shouldShowPricing:!1,business_line:"",page_type:"",tool:"",event_name:"",from_element:"",from_view:""}),o=()=>{let[e,t]=(0,s.KO)(i);return{state:e,setExpressCheckoutModal:e=>t(e),setDiscount:(0,a.useCallback)(e=>{t(t=>({...t,discount:e}))},[t])}}},23663:function(e,t,r){r.d(t,{K:function(){return n}});let n=()=>new Promise(e=>{window.embeddedservice_bootstrap?window.embeddedservice_bootstrap.userVerificationAPI.clearSession(!0).then(()=>{window.embeddedservice_bootstrap.utilAPI.removeAllComponents(),e()}).catch(t=>{console.error("Error clearing Salesforce chat session:",t),e()}):(console.warn("Salesforce chat session not found"),e())})},82668:function(e,t,r){r.d(t,{D:function(){return d}});var n=r(78511),s=r(59445),a=r(7616),i=r(52983),o=r(21910);let l=(0,r(24399).cn)(null),c=()=>{let e=(0,a.b9)(l);return(0,i.useCallback)(t=>{o.i.set(t),e(t)},[e])},u=async()=>{let e=await fetch("/user/api/my-subscriptions/team/info-v2");if(!e.ok)throw Error("Error fetching team info");let t=await e.json();return o.i.set(t),t},d=()=>{let e=(0,s.HI)(),t=c(),r=o.i.get(),a=(null==r?void 0:r.storedAt)?r:void 0;return(0,n.a)({queryKey:["team-info"],queryFn:async()=>{let e=await u();return t(e),e},enabled:null==e?void 0:e.profile.isTeams,initialData:a})}},59445:function(e,t,r){r.d(t,{HI:function(){return i.H},Lh:function(){return o.L},Q9:function(){return s.Q},RI:function(){return l.R},j7:function(){return a.j},t2:function(){return n.t}}),r(85119);var n=r(93477),s=r(54999),a=r(35158),i=r(8147),o=r(59243),l=r(51317)},85119:function(e,t,r){r.d(t,{E:function(){return i}});var n=r(52983),s=r(28380),a=r(93477);let i=()=>{let e=(0,a.t)();return(0,n.useCallback)(t=>{e({product:"",walletId:t,status:"active",creditsAvailable:0,creditsSpend:0,totalCreditsOfPlan:0,creditsAssigned:0,creditsAssignedAddons:0,disabledPermissionsTools:{},spendPerTool:{removeBackground:0,iconGeneration:0,iconGenerationSvgDownload:0,removeBackgroundIntegrationTool:0,ethnicityIntegrationTool:0},creditsAddonsAvailable:0,totalCreditsAvailable:0,addonsExpirationDate:null,autoRefill:!1,permissions:{canAccessToAddons:!1,canAccessToCheckout:!1,canCreateTeam:!1,canDowngradeProduct:!1,canDownloadResourcePremium:!1,canUpgradeFrequency:!1,canUpgradeProduct:!1,canUseIA:!1,canDownloadIconSvg:!1,canEditMockups:!1,canEditTemplates:!1},profile:{hasCrown:!1,hasLimitedCredits:!1,hasSubscriptions:!1,hasUsedAiCredits:!1,hasProLicense:!1,isAnonymous:!0,isEnterprise:!1,isFromCoupon:!1,isOwnerTeams:!1,isTeams:!1,isWhitelist:!1,isRegistered:!1,needsDownloadsAttribution:!0,frequency:"none"},productNameFriendly:"Anonymous",storedAt:Date.now()}),s.f.update({wallet_id:t})},[e])}},18444:function(e,t,r){r.d(t,{w:function(){return s}});var n=r(8147);let s=()=>{let e=(0,n.H)();return!!(null==e?void 0:e.profile.isRegistered)}},35158:function(e,t,r){r.d(t,{j:function(){return l}});var n=r(87420),s=r(8147);let a="/user/my-subscriptions",i="".concat(a,"?upgrade=plan"),o="".concat(a,"?upgrade=frequency"),l=()=>{let e=(0,s.H)(),t=(0,n.L3)(),r="".concat(t("/pricing"),"?origin=freepik_web");if(!e)return r;let{canUpgradeProduct:a,canUpgradeFrequency:l}=e.permissions;return a?i:l?o:r}},8147:function(e,t,r){r.d(t,{H:function(){return a}});var n=r(7616),s=r(88578);let a=()=>(0,n.Dv)(s.Qq)},59243:function(e,t,r){r.d(t,{L:function(){return a}});var n=r(7616),s=r(88578);let a=()=>(0,n.Dv)(s.Nf)},51317:function(e,t,r){r.d(t,{R:function(){return i}});var n=r(7616),s=r(52983),a=r(88578);let i=()=>{let e=(0,n.Dv)(a.O7);return(0,s.useMemo)(()=>({isActive:"active"===e,isUnpaid:"unpaid"===e,isFrozen:"frozen"===e,isCancelled:"cancelled"===e}),[e])}},59916:function(e,t,r){r.d(t,{b:function(){return a}});var n=r(87420);let s=e=>{let t=/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:[^.]+\.)?([^:\/\n\?\=]+)/.exec(e),r=t&&t[1]&&t[1].indexOf(".")>-1?t[1]:e;return".".concat(r)},a=()=>{let{domain:e}=(0,n.Vx)();return s(e)}},27793:function(e,t,r){r.d(t,{J:function(){return a}});var n=r(87420),s=r(50281);let a=()=>{let e=(0,s.A)(),t=(0,n.aw)(),r=(0,n.ZK)();return{loginUrl:"".concat("es"===r?"https://www.freepik.es/log-in":"https://www.freepik.com/log-in","?").concat(t),setLoginCookies:e}}},50281:function(e,t,r){r.d(t,{A:function(){return h}});var n=r(72118),s=r(51780),a=r(52983),i=r(57765);let o=e=>{let t=e,r=e.indexOf("#");if(-1!==r){let n=e.substring(r+1),s=n.indexOf("."),a=n.indexOf("/");(-1!==s||-1!==a)&&(t=e.substring(0,r))}return t};var l=r(78621);let c=["/search","/videos","/icons","/templates"],u="uuid",d=(e,t)=>{let r=o(e);if(c.some(e=>t.startsWith(e))){let e=new URLSearchParams(r.split("#")[1]),t=l.K.get();if(t&&!e.get(u))return"".concat(r,"#").concat(u,"=").concat(t)}return r};var f=r(59916);let m=new Date(new Date().getTime()+31536e6),h=()=>{let{pathname:e}=(0,s.useRouter)(),t=(0,f.b)();return(0,a.useCallback)(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;i.D.remove();let s=d(r,e);n.Z.set("GR_LGURI",s,{expires:m,path:"/",domain:t})},[t,e])}},78621:function(e,t,r){r.d(t,{K:function(){return s}});let n="tracker-uuid",s=(()=>{let e=function(){try{let e="__storage_test__";return sessionStorage.setItem(e,"test"),sessionStorage.removeItem(e),!0}catch(e){return!1}}();return{get:()=>e?sessionStorage.getItem(n):null,set:t=>{e&&sessionStorage.setItem(n,t)}}})()},21910:function(e,t,r){r.d(t,{i:function(){return s}});let n="user/team",s=(()=>{let e=()=>{try{let e=localStorage.getItem(n);if(!e)return null;return JSON.parse(e)}catch(e){return console.error("Something went wrong while getting the user team",e),null}},t=e=>{e.storedAt=Date.now(),localStorage.setItem(n,JSON.stringify(e))};return{get:e,set:t,remove:()=>{localStorage.removeItem(n)},update:r=>{let n=e();n&&t({...n,...r})}}})()}}]);